import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http";


export function addRoleApi(data: object) {
    return httpPost('/role/add', data);
}
export function getRoleApi(data?: object) {
    return httpPost('/role/find', data);
}
export function updateRoleApi(data: object) {
    return httpPut('/role/update', data);
}
export function deleteRoleApi(data: object) {
    return httpDelete('/role/remove', data);
}
export function getRoleByIdApi(data?: object) {
    return httpGet('/role/getById', data);
}